package com.wzcl.app.model.common;

public enum  CodeMsg{
    //返回成功
    OK(200, "OK"),
    SUCCESS_NOT_DATA(201, "访问成功但没有数据"),
    SUCCESS_PAY_0(202, "0元支付成功"),

    SYSTEM_ERR(500, "服务器异常"),
    POLYV_ERR(600, "PoLyV接口调用异常"),

    MUST_BE_NOT_NULL(10001,"缺少数据信息"),
    //资源不存在
    FILE_NOT_EXIST(21000,"文件不存在"),
    USER_NOT_EXIST(20001,"用户不存在"),
    USER_INFO_NOT_EXIST(20002,"用户详情不存在"),
    ORDERS_NOT_EXIST(20003,"订单不存在"),
    CART_NOT_EXIST(20004,"购物车不存在"),
    COURSE_NOT_EXIST(20005,"课程不存在"),
    GRADE_NOT_EXIST(20006,"年级不存在"),
    PAY_RECORD_NOT_EXIST(20007,"支付记录不存在"),
    PROVINCES_NOT_EXIST(20009,"省份不存在"),
    SEND_PATH_NOT_EXIST(20011,"配送地址不存在"),
    SUBJECT_NOT_EXIST(20012,"科目不存在"),
    RESOURCE_NOT_EXIST(20013,"资源不存在"),
    DELIVERY_NOT_EXIST(20014,"快递单不存在"),
    ROOM_NOT_EXIST(20015,"直播间不存在"),
    ACTIVITY_NOT_EXIST(20016,"活动不存在"),
    ACTIVITY_RULE_NOT_EXIST(20017,"优惠规则不存在"),
    COMMODITY_NOT_EXIST(20018,"商品不存在"),
    COMMODITY_RESOURCE_NOT_EXIST(20018,"商品资源不存在"),
    USER_GROUP_NOT_EXIST(20019,"用户组不存在"),
    SINGLE_PROMOTION_NOT_EXIST(20020,"单品促销活动不存在"),
    FULL_CUT_PROMOTION_NOT_EXIST(20021,"满减促销活动不存在"),
    SECKILL_PROMOTION_NOT_EXIST(20022,"秒杀活动不存在"),
    GROUP_PROMOTION_NOT_EXIST(20022,"拼团活动不存在"),
    MATERIAL_NOT_EXIST(20023,"产品不存在"),
    TOPIC_NOT_EXIST(20024,"题目不存在"),
    TOPIC_INFO_NOT_EXIST(20025,"题目详情不存在"),
    TOPIC_OPTION_NOT_EXIST(20026,"题目选项不存在"),
    HOME_MASSAGE_NOT_EXIST(20027,"首页信息不存在"),
    COURSE_MATERIAL_NOT_EXIST(20028,"课程资料不存在"),
    COURSE_POINT_NOT_EXIST(20029,"课程大纲不存在"),
    COURSE_TEACHER_NOT_EXIST(20030,"课程老师不存在"),
    COURSE_COMMENT_NOT_EXIST(20031,"评论不存在"),
    FILE_GROUP_NOT_EXIST(20032,"素材组不存在"),
    FILE_MODEL_NOT_EXIST(20033,"素材不存在"),
    FEEDBACK_NOT_EXIST(20034,"反馈不存在"),
    VIDEO_RESOURCE_NOT_EXIST(20035,"视频不存在"),
    REQUISITION_NOT_EXIST(20036,"申请不存在"),
    REFUND_REQUEST_NOT_EXIST(20037,"退款申请不存在"),
    KNOWLEDGE_POINT_NOT_EXIST(20038,"知识点不存在"),
    TOPIC_AND_KNOWLEDGE_POINT_NOT_EXIST(20039,"题目知识点不存在"),
    ATTRIBUTE_NOT_EXIST(20040,"规格属性不存在"),
    SPEC_NOT_EXIST(20041,"产品规格不存在"),
    ACTIVITY_GROUP_NOT_EXIST(20042,"目标团不存在"),
    //资源已删除
    USER_IS_DELETE(30001,"用户已删除"),
    USER_INFO_IS_DELETE(30002,"用户详情已删除"),
    CART_IS_DELETE(30004,"购物车已删除"),
    COURSE_IS_DELETE(30005,"课程已删除"),
    MATERIAL_IS_DELETE(30022,"产品已删除"),
    COMMODITY_IS_DELETE(30026,"产品已删除"),

    //字典错误
    DELIVERY_COMPANY_ERROR(40001,"快递类型错误"),
    USER_STATE_ERROR(40006,"用户状态错误"),
    PAY_TYPE_ERROR(40010,"支付类型错误"),
    DELIVERY_STATE_ERROR(40011,"快递状态错误"),
    AUDIT_STATE_ERROR(40014,"审核状态错误"),
    ACTIVITY_STATE_ERROR(40015,"活动发布状态错误"),
    ACTIVITY_TYPE_ERROR(40016,"活动类型错误"),
    COMMODITY_TYPE_ERROR(40017,"商品类型错误"),
    //自定义错误
    USER_NOT_MATCH(50001,"操作用户不匹配"),
    CODE_NOT_SEND(50002,"未发送验证码"),
    CODE_NOT_MATCH(50003,"验证码不正确"),
    CART_NOT_REPEAT(50004,"购物车已存在"),
    ORDERS_NO_CREATE_FAIL(50005,"创建订单编号失败"),
    MSG_SEND_FAIL(50006,"短信发送失败"),
    USER_NOT_REPEAT(50007,"用户已注册"),
    USER_NOT_EFFECTIVE(50008,"用户未生效"),
    ROOM_OPERATE_FAIL(50011,"直播间操作失败"),
    ACTIVITY_CANNOT_OPERATE(50013,"活动无法操作"),
    CODE_IS_EXPIRE(50014,"验证码已过期"),
    COMMODITY_COUNT_SHOP(50015,"商品无法购买"),
    COMMODITY_NOT_SALE(50016,"商品未上架"),
    COMMODITY_BIND_FAIL(50017,"活动绑定失败"),
    ORDER_OPERATE_FAIL(50018,"订单操作失败"),
    USER_GROUP_OPERATE_FAIL(50019,"用户组操作失败"),
    ORDER_CREATING(50020,"订单正在生成！请稍后重试"),
    PAY_OPERATE_FAIL(50021,"支付操作失败"),
    USER_COURSE_NOT_EXIST(50022,"用户尚未购买当前课程"),
    COURSE_COMMENT_OPERATE_FAIL(50023,"评论失败"),
    FEEDBACK_OPERATE_FAIL(50024,"反馈操作失败"),
    CART_CREATING(50025,"购物车正在生成！请稍后重试"),
    REQUISITION_CREATING(50026,"用户报名中！请稍后重试"),
    REFUND_REQUEST_CREATING(50027,"退款申请中！请稍后重试"),
    REFUND_REQUEST_OPERATE_FAIL(50028,"申请退款失败"),
    ACTIVITY_HAS_PARTICIPATED(50029,"已参加过当前活动"),
    USER_COURSE_HAS_EXIST(50030,"已购买当前课程,无需重复购买"),
    ACTIVITY_USER_CANNOT_PARTICIPATED(50031,"当前用户无法参与该活动"),
    ;


    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    CodeMsg(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
